package com.match.pattern.factory.abstractfactory;

import com.match.pattern.factory.abstractfactory.facade.Flyable;
import com.match.pattern.factory.abstractfactory.facade.Moveable;
import com.match.pattern.factory.abstractfactory.facade.Writeable;

public class FactoryTest {

	public static void main(String[] args) {
		AbstractFactory factory=new ConcreteFactory();
		Flyable flyable=factory.createFlyable();
		flyable.fly(123);
		
		Moveable moveable=factory.createMoveable();
		moveable.move(6);
		
		Writeable writeable=factory.createWriteable();
		writeable.write(3000);
	}

}
